<template>
  <van-cell :title="title" :label="label + ' - ' + title">
    <!-- 自定义插槽 修改右侧图标 -->
    <template #right-icon>
      <van-icon @click="playFn" name="play-circle-o" size="0.6rem" />
    </template>
  </van-cell>
</template>

<script>
export default {
  props: {
    title: String,
    label: String,
    id: Number, //音乐id，后面跳转页面要用
  },
  methods: {
    playFn() {
      //点击----路由跳转
      this.$router.push({
        path: "/play",
        query: {
          id: this.id,
        },
      });
    },
  },
};
</script>

<style>
</style>
